import request from '@/utils/request'

// 提交退云申请
export function cloudExitApply(data) {
  return request({
    url: '/activiti/cloudExit/apply',
    method: 'post',
    data: data
  })
}
// 申请列表
export function cloudExitList(data) {
  return request({
    url: '/activiti/cloudExit/list',
    method: 'get',
    params: data
  })
}
// 申请详情
export function cloudExitDetails(data) {
  return request({
    url: '/activiti/cloudExit/'+data.formId,
    method: 'get',
    params: data
  })
}


// 任务流程中查询申请详情
export function cloudExitInstId(data) {
  return request({
    url: '/activiti/cloudExit/instId/'+data.instId,
    method: 'get',
    params: data
  })
}
// 审批
export function cloudExitAudit(data) {
  return request({
    url: '/activiti/cloudExit/audit/'+data.taskId,
    method: 'post',
    data: data
  })
}
